package com.itrip.mail;

public class SendMail {
    /**
     *
     * @param powerCode 授权码
     * @param mails 邮箱地址
     */
    public static void send(String powerCode,String mails) {

        boolean result = false;
        try {
            result = MailSender.sendMail(
                    "smtp.qq.com",
                    "3369896952@qq.com",
                    "ziemnhntbglzciib",
                    "JAVA邮箱发送",
                    "内容,<h1>HTML内容"+powerCode+"</h1>",
                    "html",
                    new String[]{mails},
                    null);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println(result);

    }
}
